const mazeScene = document.querySelector('#maze-scene');

if (mazeScene.hasLoaded) {
  run();
} else {
    mazeScene.addEventListener('loaded', run);
}

function run () {
    let loader = document.querySelector("#loader");
    loader.remove();
    mazeScene.setAttribute("style", "display:block");
}